Enable specific exception lint rule - #614
Merged
Merged
Conversation
This was referenced Aug 7, 2026
Contributor
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Package Size
Android file breakdown
Measured from the PR base SHA and PR head SHA. The file breakdown shows uncompressed sizes within each package artifact, so individual files do not sum to the compressed artifact total. This comment reports package artifact sizes only; it is not a final app binary-size report. |
Checkout Kit E2E resultsCaution E2E runs were skipped — 1 pipeline stage failed:
None of the 1 planned run executed:
|
kieran-osgood-shopify
approved these changes
Aug 10, 2026
kiftio
changed the base branch from
08-07-enable_file_naming_lint_rules
to
graphite-base/614
September 2, 2026 12:45
Assisted-By: devx/e2f77bde-d08f-41c4-a14f-b50a215d784a
kiftio
force-pushed
the
graphite-base/614
branch
from
September 2, 2026 14:06
aaadef3 to
89dfcfa
Compare
kiftio
force-pushed
the
08-07-enable_specific_exception_lint_rule
branch
from
September 2, 2026 14:06
4b1a453 to
4681624
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What changes are you making?
Replaces generic
RuntimeExceptionthrows throughout the Android demo app with more specific, typed exceptions:CartOperationExceptionfor cart-related failures (create, add, update, remove).StorefrontApiExceptionfor Storefront API errors and failed data fetches (product, collection).RuntimeException("Unknown route")withIllegalArgumentException("Unknown route: $route")to better communicate invalid navigation state.TooGenericExceptionThrowndetekt rule to enforce this going forward.How to test
CartOperationExceptionandStorefrontApiExceptionare thrown with appropriate messages../gradlew detekt) and confirm noTooGenericExceptionThrownviolations are reported.Before you merge
Important
platforms/swift/README.mdand/orplatforms/android/README.md)Releasing a new Swift version?
ShopifyCheckoutKit.podspecplatforms/swift/Sources/ShopifyCheckoutKit/ShopifyCheckoutKit.swiftplatforms/swift/README.md(major version only)Releasing a new Embedded Checkout Protocol version?
embeddedCheckoutProtocolAndroidinplatforms/android/gradle/libs.versions.tomlprotocol/languages/kotlin/embedded-checkout-protocol/api/embedded-checkout-protocol.apiif the public API changedReleasing a new Android version?
checkoutKitAndroidinplatforms/android/gradle/libs.versions.tomlplatforms/android/README.mdTip
See the Contributing documentation for the full release process per platform.